<?php

namespace App\Providers;

use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * 应用事件的监听映射
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'App\Events\AdminPermissionChangeEvent' => [
            'App\Listeners\AdminPermissionChangeListener',
        ],
        'App\Events\AdminLoggerEvent' => [
            'App\Listeners\AdminLoggerListener',
        ],
        'App\Events\OrderShipped' => [
             'App\Listeners\SendShipmentNotification',
        ],
        'App\Events\PusherEvent'=>[
            'App\Listeners\PusherEventListener',
        ],
    ];

    /**
     * 要注册的订阅者类
     * @var array
     */
    protected $subscribe = [

    ];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        //
    }



}
